package com.fzh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.fzh.mapper.CommentMapper;
import com.fzh.pojo.entity.Comment;
import com.fzh.service.CommentService;

@Service
public class CommentServiceImpl implements CommentService {

	@Autowired
	private CommentMapper commentMapper;
	
	@Override
	public int deleteById(Integer id) {
		
		return commentMapper.deleteById(id);
	}

	@Override
	public int insertComment(Comment record) {
		
		return commentMapper.insertComment(record);
	}

	@Override
	public List<Comment> selectByProId(Integer id) {
		
		return commentMapper.selectByProId(id);
	}

	@Override
	public Comment selectById(Integer id) {
		
		return commentMapper.selectById(id);
	}

	@Override
	public int updateById(Comment record) {
		
		return commentMapper.updateById(record);
	}

}
